import { createRouter, createWebHashHistory } from 'vue-router'
import Home from '@/views/Home.vue'
import EmployerEditView from '../views/employ/EmployerEditView.vue';

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: "/home",
      name: "home",
      component: Home,
    },
    // 不同的页面，对应不同的路由地址
    {
      path: "/demo",
      name: "demo",
      component: () => import("@/views/Demo.vue"),
    },
    //登录路由
    {
      path: '/login',
      name: 'Login',
      component: () => import("@/views/Login.vue"),
    },
    //管理员分页
    {
      path: '/admin/page',
      name: 'admin-page',
      component: () => import('@/views/AdminPageView.vue')
    },
    //管理员分页
    {
      path: '/admin/detail',
      name: 'admin-detail',
      component: () => import('@/views/AdminDetailView.vue')
    },
    //管理员新增
    {
      path: '/admin/save',
      name: 'admin-save',
      component: () => import('@/views/AdminSaveView.vue')
    },

    //运营经理 员工管理主页面
    {
      path: '/employer/page',
      name: 'employer-page',
      component: () => import('@/views/employ/EmployerPageView.vue')
    },
    {
      path: '/employer/detail',
      name: 'employer-detail',
      component: () => import('@/views/employ/EmployerDetailView.vue')
    },
    {
      path: '/employer/save',
      name: 'employer-save',
      component: () => import('@/views/employ/EmployerSaveView.vue')
    },
    {
      path: '/employer/Edit',
      name: 'employer-edit',
      component: () => import('@/views/employ/EmployerEditView.vue')
    },
    //岗位分页
    {
      path: '/postInfo/page',
      name: 'postInfo-page',
      component: () => import('@/views/postInfo/PostInfoPageView.vue')
    },
    //岗位详情页
    {
      path: '/postInfo/detail',
      name: 'postInfo-detail',
      component: () => import('@/views/postInfo/PostInfoDetailView.vue')
    },
    //岗位信息的修改和保存
    {
      path: '/postInfo/save',
      name: 'postInfo-save',
      component: () => import('@/views/postInfo/PostInfoSaveView.vue')
    },
    //护工管理
    {
      path: '/caregiver/page',
      name: 'caregiver-page',
      component: () => import('@/views/careGiver/CareGiverPageView.vue')
    },
    {
      path: '/careContent/page',
      name: 'careContent-page',
      component: () => import('@/views/careGiver/careContentPageView.vue')
    },
    //床位管理
    {
      path: '/bedManagement/page',
      name: 'bedManagement-page',
      component: () => import('@/views/bedManagement/BedManagementPageView.vue')
    },
    {
      path: '/bedManagement/add',
      name: 'bedManagement-add',
      component: () => import('@/views/bedManagement/BedAddView.vue')
    },

    //老人信息分页
    {
      path: '/elderInfo/page',
      name: 'elderInfo-page',
      component: () => import('@/views/elderInfo/ElderInfoPageView.vue')
    },
    //老人详细信息
    {
      path: '/elderInfo/detail',
      name: 'elderInfo-detail',
      component: () => import('@/views/elderInfo/ElderInfoDetailView.vue')
    },
    //新增或者修改老人详细信息
    {
      path: '/elderInfo/save',
      name: 'elderInfo-save',
      component: () => import('@/views/elderInfo/ElderInfoSaveView.vue')
    },
    //库存信息分页
    {
      path: '/goodsInfo/page',
      name: 'goodsInfo-page',
      component: () => import('@/views/goodsInfo/GoodsInfoPageView.vue')
    },
    //食谱信息分页
    {
      path: '/foodInfo/page',
      name: 'foodInfo-page',
      component: () => import('@/views/foodinfo/FoodInfoView.vue')
    },
    //查看食谱详细信息
    {
      path: '/foodInfo/detail',
      name: 'foodInfo-detail',
      component: () => import('@/views/foodinfo/FoodDetailView.vue')
    },
    //编辑食谱
    {
      path: '/foodInfo/save',
      name: 'foodInfo-save',
      component: () => import('@/views/foodinfo/FoodInfoSaveView.vue')
    },
    //库存详细信息
    {
      path: '/goodsInfo/detail',
      name: 'goodsInfo-detail',
      component: () => import('@/views/goodsInfo/GoodsInfoDetailView.vue')
    },
    //库存信息保存
    {
      path: '/goodsInfo/save',
      name: 'goodsInfo-save',
      component: () => import('@/views/goodsInfo/GoodsInfoSaveView.vue')
    },
    //外出分页信息
    {
      path: '/outEnter/page',
      name: 'outEnter-page',
      component: () => import('@/views/outEnter/OutEnterPageView.vue')
    },
    //外出详细信息
    {
      path: '/outEnter/detail',
      name: 'outEnter-detail',
      component: () => import('@/views/outEnter/OutEnterDetailView.vue')
    },
    //外出保存信息
    {
      path: '/outEnter/save',
      name: 'outEnter-save',
      component: () => import('@/views/outEnter/OutEnterSaveView.vue')
    },
    //护理记录分页信息
    {
      path: '/careRecord/page',
      name: 'careRecord-page',
      component: () => import('@/views/careRecord/CareRecordPageView.vue')
    },
    //护理记录详细信息
    {
      path: '/careRecord/detail',
      name: 'careRecord-detail',
      component: () => import('@/views/careRecord/CareRecordDetailView.vue')
    },
    //护理信息保存
    {
      path: '/careRecord/save',
      name: 'careRecord-save',
      component: () => import('@/views/careRecord/CareRecordSaveView.vue')
    },
//体检
      {
          path:'/phyExam/page',
          name:'phyExam-page',
          component:()=>import('@/views/phyExam/PhyExamPageView.vue')

      },





  ],
});

export default router
